package com.qk.management.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qk.doman.clue.BusinessCountDO;
import com.qk.domin.business.BusinessDO;
import com.qk.domin.business.BusinessTrackRecordDO;
import com.qk.dto.business.BusinessPoolDTO;
import com.qk.dto.business.BusinessQueryDTO;
import com.qk.entity.Business;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 16778
 * @date 2025/10/14 20:02
 * @description
 */
@Mapper
public interface BusinessMapper extends BaseMapper<Business> {
    Page<BusinessDO> selectByPage(Page<BusinessDO> pageParam, BusinessQueryDTO dto);

    List<BusinessTrackRecordDO> getTrackRecordByBusinessId(Integer businessId);

    BusinessCountDO count();

    Page<Business> pool(Page pageParam, BusinessPoolDTO dto);
}
